package social_network.entities;

/**
 * @author Maksym Zabrodskyi
 */
public class Administrator {
	private Integer id;
	private String email;
	private String name;
	private String surname;
	private String password;

	public Administrator(Integer id, String email, String name, String surname,
			String password) {
		this.id = id;
		this.email = email;
		this.name = name;
		this.surname = surname;
		this.password = password;
	}

	public Integer getId() {
		return id;
	}

	public String getEmail() {
		return email;
	}

	public String getName() {
		return name;
	}

	public String getSurname() {
		return surname;
	}

	public String getPassword() {
		return password;
	}

	@Override
	public int hashCode() {
		int hash = 0;
		hash += (id != null ? id.hashCode() : 0);
		return hash;
	}

	@Override
	public boolean equals(Object object) {
		if (!(object instanceof Administrator)) {
			return false;
		}
		if (this == object) {
			return true;
		}

		Administrator other = (Administrator) object;

		if ((this.id == null && other.id != null)
				|| (this.id != null && !this.id.equals(other.id))) {
			return false;
		}

		return this.id.equals(other.id) && this.email.equals(other.email)
				&& this.name.equals(other.name)
				&& this.surname.equals(other.surname)
				&& this.password.equals(other.password);
	}

	@Override
	public String toString() {
		return "entities.Administrator [ id = " + id + " ]";
	}
}
